package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null"`
	Password string `gorm:"type:varchar(11);not null"`
	Telephone string `gorm:"type:varchar(11);not null;unique"`
}

func (u User) TableName() string {
	return "goessential_user"
}